package com.zhongli.devplatform.po.common;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 评论回复表(ReadReply)表实体类
 *
 * @author aiyuan
 * @since 2020-08-24 11:09:06
 */
@Data
@TableName("read_reply")
public class ReadReplyPO{
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 回复目标id
     */
    private Integer replyId;
    /**
     * 评论表id
     */
    private Integer commentId;
    /**
     * 回复内容
     */
    private String comment;
    /**
     * 回复用户id
     */
    private Integer fromId;
    /**
     * 目标用户id
     */
    private Integer toId;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * true 回复 comment
     * false 回复 reply
     */
    private Boolean replyType;
}
